package net.towee.model.repo;

import net.towee.model.discussion.Discussion;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Consists of some information about attachment
 * @author c58
 */
public interface AttachmentInfo extends IsSerializable  {
	/**
	 * @return identity of this attachment
	 */
	AttachmentIdentity getIdentity();
	
	/**
	 * @return discussion of this file
	 */
	Discussion getDiscussion();
	
	/**
	 * @return AttachmentPicture
	 */
	AttachmentPicture toPicture();
	
	/**
	 * @return AttachmentTorrent
	 */
	AttachmentTorrent toTorrent();
}
